import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'
import axios from 'axios';
Vue.prototype.axios = axios;
//引入图片查看viewer
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
Vue.use(Viewer)
Viewer.setDefaults({
  // 需要配置的属性 注意属性并没有引号
  title: false,
  toolbar: false,
  navbar: false
})
//图片懒加载
import VueLazyload from "vue-lazyload";
Vue.use(VueLazyload,{
  preLoad: 1.3,
  loading: require('../src/assets/image/loading.gif'),
  attempt: 1
})

Vue.config.productionTip = false
// axios.defaults.baseURL = '/api';
axios.defaults.baseURL = '/nefu';
Vue.use(ElementUI)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

